<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title></title>
		<style type="text/css">
			*{
				margin: 0;
				padding: 0;
				box-sizing: border-box;	
			}
			ul,li{
				list-style: none;
				border-bottom: 1px solid #ddd;
			}
			li{padding: 1rem;
				display: flex;
				justify-content: space-between;
			}
			li div{
				width: 20%;
				text-align: center;
			}
			.active{
				background: #DCDCDC;
			}
			footer a{
				width: 50%;
			}
		</style>
		<script src="moni2/js/jquery.min.js" type="text/javascript" charset="utf-8"></script>
		<script src="js/angular.js" type="text/javascript" charset="utf-8"></script>
		<script src="js/angular-route.js" type="text/javascript" charset="utf-8"></script>
		
	</head>
	<body ng-app='myApp' ng-controller="mk">
		<div ng-view></div>
	
		
		<footer>
			<a href="#!/a">首页</a>
			<a href="#!/b">购物车({{sl}})</a>
		</footer>
	</body>
<script src="js/route.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript">
	$('fooer a').click(function(){
		$('fooer a').siblings().css('background','#fff');
		$(this).css('background','#ddd')
	})
</script>
</html>
